package com.ljh.SimpleTradingSystem.mybatis.entity;

import lombok.Data;

@Data
public class Goods {
    private int id;                 //商品id
    private int merchantId;         //卖家id
    private String name;            //商品名称
    private String type;            //商品类别
    private String releaseTime;     //商品发布时间
    private double price;           //商品价格
    private int commentNum;         //商品评论数
    private int thumbNum;           //商品点赞数
    private String introduction;    //商品介绍
    private String imagePath;       //商品图片的路径字符串

    public Goods() {
    }

    public Goods(int merchantId, String name, String type, String releaseTime, double price, int commentNum, int thumbNum, String introduction, String imagePath) {
        this.merchantId = merchantId;
        this.name = name;
        this.type = type;
        this.releaseTime = releaseTime;
        this.price = price;
        this.commentNum = commentNum;
        this.thumbNum = thumbNum;
        this.introduction = introduction;
        this.imagePath = imagePath;
    }
}
